//#include<iostream>
//using namespace std;
//const int MONEY = 251;
//const int VALUE = 5;
//int type[VALUE] = { 1,5,10,25,50 };
//int Min[MONEY];
//
//void solve()
//{
//	for (int k = 0; k < MONEY; k++)
//		Min[k] = INT_MAX;
//	Min[0] = 0;
//	for (int tp = 0; tp < VALUE; tp++) {
//		for (int i = type[tp]; i < MONEY; ++i) {
//			Min[i] = min(Min[i], Min[i - type[tp]] + 1);
//		}
//	}
//}
//int main()
//{
//	int s;
//	solve();
//	while (cin >> s) {
//		cout << Min[s] << endl;
//	}
//	return 0;
//}


#include<iostream>
using namespace std;
const int COIN = 101;
const int MONEY = 251;
int dp[MONEY][COIN];
int type[5] = { 1,5,10,25,50 };

void solve()
{
	dp[0][0] = 1;
	for (int k = 0; k < 5; k++)
		for (int j = 0; j < COIN; j++)
			for (int i = type[k]; i < MONEY; i++) {
				dp[i][j] += dp[i - type[k]][j - 1];
			}
}

int main()
{
	int s;
	int ans[251] = { 0 };
	solve();
	for (int i = 0; i < MONEY; i++) {
		for (int j = 0; j < COIN; j++) {
			ans[i] += dp[i][j];
		}
	}
	while (cin >> s) {
		cout << ans[s] << endl;
	}
	return 0;
}